package com.guoxin.designpattern.chapter1;

/**
 * 单例模式，懒汉式，线程不安全
 * 
 * @author guoxin
 * @date 2019年8月26日
 */
public class SingletonObject2 {
	private static  SingletonObject2 instance;

	private SingletonObject2() {
		// empty
	}

	public static SingletonObject2 getInstance() {
		if (instance == null) {
			instance = new SingletonObject2();
		}
		return instance;
	}
}
